package com.cskaoyan.javase.homework.day13.stage2.util;

import javax.swing.*;
import java.net.URL;

/**
 * 获取图片素材的相关的ImageIcon对象
 *
 * @since 14:14
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class ImageIconUtils {

    private ImageIconUtils() {
    }

    // 首页图片的URL
    private static URL home = ImageIconUtils.class.getResource("/statics/center.jpg");



    public static ImageIcon getHome() {
        return new ImageIcon(home);
    }

}
